package com.test.shiro;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

/**
 * Created by jl on 2018/12/20 0020
 */
public class Demo {

    public static void main(String[] args) {

        Subject subject = SecurityUtils.getSubject();
        subject.hasRole("testrole");

    }
}
